<div class="page-header position-relative">
	<h1>
		Tạo Mới Menu Và Nội Dung Trang
	</h1>
</div>
<div class="row-fluid">
	<div class="span12">
		<!--PAGE CONTENT BEGINS-->
		<?php
		$form = $this->beginWidget('CActiveForm', array(
			'id' => 'menu-form',
//            'enableAjaxValidation' => false,
			'enableClientValidation' => true,
			'htmlOptions' => array(
				'class' => 'form-horizontal',
				),
			));
		?>
		<div class="control-group">
				<?php echo $form->label($model,'Nhóm Menu',array('class' => 'control-label')); ?>
				<div class="controls">
                    <?php echo $form->dropDownlist($model, 'GroupMenu', array('0' => 'Header','1'=>'Footer')); ?>
                </div>
                <?php echo $form->error($model,'GroupMenu'); ?>
			</div>
			
			
			<div class="control-group">
				<?php echo $form->label($model,'Tên Menu',array('class' => 'control-label')); ?>
				<!-- <label class="control-label" for="form-field-1">Text Field</label> -->

				<div class="controls">
					<?php echo $form->textField($model, 'MenuName', array('size' => 60, 'maxlength' => 255,'class'=>'span5','placeholder' => 'Tên Menu')); ?>
                	<span class="help-inline"><?php echo $form->error($model, 'MenuName'); ?></span>
				</div>
			</div>


			<div class="control-group">
				<?php echo $form->label($model,'Css Class',array('class' => 'control-label')); ?>

				<div class="controls">
					<?php echo $form->textField($model, 'ClassName', array('size' => 60, 'maxlength' => 255,'class'=>'span5','placeholder' => 'Css Class')); ?>
                	<span class="help-inline"><?php echo $form->error($model, 'ClassName'); ?></span>
				</div>
			</div>

			<div class="control-group">
				<?php echo $form->label($model,'Thứ tự',array('class' => 'control-label')); ?>

				<div class="controls">
					<?php echo $form->textField($model, 'Order', array('size' => 60, 'maxlength' => 255,'class'=>'span5','placeholder' => 'Thứ tự')); ?>
                	<span class="help-inline"><?php echo $form->error($model, 'Order'); ?></span>
				</div>
			</div>
			

			<div class="control-group">
				<?php echo $form->label($model,'Trạng Thái',array('class' => 'control-label')); ?>

				<div class="controls">
					<select class="span3" name="Menu[Status]">
						<option value="0">Không kích hoạt</option>
						<option value="1">Kích hoạt</option>
					</select>
                	<span class="help-inline"><?php echo $form->error($model, 'Status'); ?></span>
				</div>
			</div>

			<div class="control-group">
				<?php echo $form->labelex($content, 'Mô Tả Ngắn Nội Dung', array('class' => 'control-label')); ?>
				<!-- <label class="control-label">Mô Tả Ngắn</label> -->
				<div class="controls">
					<?php echo $form->textField($content, 'Short_Descriptions', array('size' => 60, 'maxlength' => 255,'class'=>'span5','placeholder' => 'Mô Tả Ngắn')); ?>
                	<span class="help-inline"><?php echo $form->error($content, 'Short_Descriptions'); ?></span>
				</div>
			</div>
			
			<div class="control-group">
				<label class="control-label">Chi Tiết Nội Dung</label>
			</div>

			<?php
                $this->widget('ext.editMe.ExtEditMe', array(
                    'model' => $content,
                    //'name' => 'description'
                    'height' => '250px',
                    'width' => '100%',
                    'attribute' => 'Descriptions',
                    'toolbar' => Yii::app()->params['ckeditor'],
                    'filebrowserBrowseUrl' => Yii::app()->baseUrl . '/ckfinder/ckfinder.html',
                    'filebrowserImageBrowseUrl' => Yii::app()->baseUrl . '/ckfinder/ckfinder.html?type=Images',
                    'filebrowserFlashBrowseUrl' => Yii::app()->baseUrl . '/ckfinder/ckfinder.html?type=Flash',
                    'filebrowserUploadUrl' => Yii::app()->baseUrl . '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
                    'filebrowserImageUploadUrl' => Yii::app()->baseUrl . '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
                    'filebrowserFlashUploadUrl' => Yii::app()->baseUrl . '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash',
                ));
                ?>

			<div class="form-actions">
				<button class="btn btn-info" type="submit">
					<i class="icon-ok bigger-110"></i>
					Submit
				</button>

				&nbsp; &nbsp; &nbsp;
				<button class="btn" type="reset">
					<i class="icon-undo bigger-110"></i>
					Reset
				</button>
			</div>
		<?php $this->endWidget(); ?>
	</div>
</div>
